home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / restaurante_1072.swf / scripts / __Packages / Candle.as < prev    next >
Text File  |  2009-04-16  |  6KB  |  172 lines

  1. if(true)
  2. {
  3.    if(true)
  4.    {
  5.       ┬º┬ºpush(false);
  6.    }
  7.    if(!┬º┬ºpop())
  8.    {
  9.       if(true)
  10.       {
  11.          if(true)
  12.          {
  13.             ┬º┬ºpush(false);
  14.          }
  15.          if(!┬º┬ºpop())
  16.          {
  17.             if(!_global.Candle)
  18.             {
  19.                _global.Candle extends BoundItem;
  20.                var _loc2_ = _global.Candle = function($mc, $num, $heartsNum)
  21.                {
  22.                   super($mc,$num,$heartsNum);
  23.                   this.init();
  24.                }.prototype;
  25.                _global.Candle = function($mc, $num, $heartsNum)
  26.                {
  27.                   super($mc,$num,$heartsNum);
  28.                   this.init();
  29.                }.__get__MCLINK = function()
  30.                {
  31.                   return "Candle";
  32.                };
  33.                _global.Candle = function($mc, $num, $heartsNum)
  34.                {
  35.                   super($mc,$num,$heartsNum);
  36.                   this.init();
  37.                }.__get__FIREDELAY = function()
  38.                {
  39.                   return 3000;
  40.                };
  41.                _loc2_.__set__mc = function(value)
  42.                {
  43.                   this._mc.removeMovieClip();
  44.                   this._mc = value;
  45.                   return this.__get__mc();
  46.                };
  47.                _loc2_.init = function()
  48.                {
  49.                   this.bornPoint = new flash.geom.Point(this.__get__mc()._x,this.__get__mc()._y);
  50.                   var obj = this;
  51.                   this.__get__mc().onPress = function()
  52.                   {
  53.                      obj.__get__mc().onMouseMove = function()
  54.                      {
  55.                         obj.onMouseMove();
  56.                         updateAfterEvent();
  57.                      };
  58.                      obj.__get__mc().startDrag();
  59.                      Mission.getMission().draggingMc = this;
  60.                      Mission.getMission().refreshDepth();
  61.                   };
  62.                   this.__get__mc().onRelease = function()
  63.                   {
  64.                      obj.mcDropped();
  65.                   };
  66.                };
  67.                _loc2_.onMouseMove = function()
  68.                {
  69.                   if(this.__get__table() == null)
  70.                   {
  71.                      this._table = this.getTouchTable();
  72.                   }
  73.                   else if(McTools.isMouseInMc(this.__get__table().__get__mc()))
  74.                   {
  75.                      this.__get__table().onRollOver();
  76.                   }
  77.                   else
  78.                   {
  79.                      this.__get__table().onRollOut();
  80.                      this._table = null;
  81.                   }
  82.                };
  83.                _loc2_.mcDropped = function()
  84.                {
  85.                   this._table = this.getTouchTable();
  86.                   this.__get__mc().stopDrag();
  87.                   this.__get__mc().onMouseMove = null;
  88.                   Mission.getMission().draggingMc = null;
  89.                   var obj = this;
  90.                   if(this.__get__table() != null)
  91.                   {
  92.                      this.__get__mc().onPress = null;
  93.                      this.__get__mc().onRelease = null;
  94.                      this.__get__mc().removeMovieClip();
  95.                      this.__set__mc(this.__get__table().__get__deskMc().attachMovie(Candle.__get__MCLINK(),"candleOnDesk" + getTimer(),this.__get__table().__get__deskMc().getNextHighestDepth(),{_x:-15,_y:-20}));
  96.                      var interval = setInterval(function()
  97.                      {
  98.                         obj.active();
  99.                         clearInterval(interval);
  100.                      }
  101.                      ,Candle.__get__FIREDELAY());
  102.                   }
  103.                   else
  104.                   {
  105.                      this.__get__mc()._x = this.bornPoint.x;
  106.                      this.__get__mc()._y = this.bornPoint.y;
  107.                   }
  108.                };
  109.                _loc2_.getTouchTable = function()
  110.                {
  111.                   var _loc2_ = Mission.getMission().__get__tables();
  112.                   var _loc1_ = 0;
  113.                   while(_loc1_ < _loc2_.length)
  114.                   {
  115.                      if(McTools.isMouseInMc(_loc2_[_loc1_].mc) && Table(_loc2_[_loc1_]).__get__numCustomers() >= Table(_loc2_[_loc1_]).__get__maxNumCustomers() && !Table(_loc2_[_loc1_]).__get__customerLeave())
  116.                      {
  117.                         return _loc2_[_loc1_];
  118.                      }
  119.                      _loc1_ = _loc1_ + 1;
  120.                   }
  121.                   return null;
  122.                };
  123.                _loc2_.active = function()
  124.                {
  125.                   Mission.getMission().getBound(this);
  126.                   this._num = this._num - 1;
  127.                   if(this.__get__mc() && this.__get__num() <= 0)
  128.                   {
  129.                      this.terminate();
  130.                   }
  131.                };
  132.                ┬º┬ºpush((_global.Candle = function($mc, $num, $heartsNum)
  133.                {
  134.                   super($mc,$num,$heartsNum);
  135.                   this.init();
  136.                }).addProperty("FIREDELAY",_global.Candle = function($mc, $num, $heartsNum)
  137.                {
  138.                   super($mc,$num,$heartsNum);
  139.                   this.init();
  140.                }.__get__FIREDELAY,function()
  141.                {
  142.                }
  143.                ));
  144.                ┬º┬ºpush((_global.Candle = function($mc, $num, $heartsNum)
  145.                {
  146.                   super($mc,$num,$heartsNum);
  147.                   this.init();
  148.                }).addProperty("MCLINK",_global.Candle = function($mc, $num, $heartsNum)
  149.                {
  150.                   super($mc,$num,$heartsNum);
  151.                   this.init();
  152.                }.__get__MCLINK,function()
  153.                {
  154.                }
  155.                ));
  156.                ┬º┬ºpush(_loc2_.addProperty("mc",function()
  157.                {
  158.                }
  159.                ,_loc2_.__set__mc));
  160.                ┬º┬ºpush(ASSetPropFlags(_global.Candle.prototype,null,1));
  161.             }
  162.             ┬º┬ºpop();
  163.          }
  164.       }
  165.       ┬º┬ºgoto(addr427);
  166.    }
  167.    ┬º┬ºpush(┬º┬ºpop() + function ┬º\x1b∩┐╜\x02┬º(┬º∩┐╜\x07┬º, ┬º\x01┬º, ┬º\x02\x01┬º, ┬º\x01┬º, ┬º∩┐╜∩┐╜t\x02∩┐╜n\x02=┬º, _global, Candle, init, BoundItem, prototype, __get__MCLINK, __get__FIREDELAY, __set__mc, _mc)
  168.    {
  169.    });
  170. }
  171. addr427:
  172.